﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  
  <xs:simpleType name="optimization_status">
    <xs:restriction base="xs:unsignedShort">
      <xs:enumeration value="0" />
      <xs:enumeration value="1" />
      <xs:enumeration value="2" />
      <xs:enumeration value="3" />
      <xs:enumeration value="4" />
      <xs:enumeration value="5" />
      <xs:enumeration value="100" />
    </xs:restriction>
  </xs:simpleType>
  
  <xs:element name="ResultData">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="ParetoPoints">
          <xs:complexType>
	    
            <xs:sequence>	     
              <xs:element  maxOccurs="unbounded" name="ParetoPoint">
                <xs:complexType>
                  <xs:attribute name="index" type="xs:unsignedShort" use="required" />
                  <xs:attribute name="pointnum" type="xs:nonNegativeInteger" use="required" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element minOccurs="0" maxOccurs="1" name="ErrorDesc">
          <xs:complexType>
            <xs:attribute name="errid" type="xs:unsignedShort" use="required" />
            <xs:attribute name="errmsg" type="xs:string" use="required" />
          </xs:complexType>
        </xs:element>
      </xs:sequence>
      <xs:attribute name="status" type="optimization_status" use="required" />
	  <xs:attribute name="IterIndex" type="xs:nonNegativeInteger" use="optional" />
    </xs:complexType>
  </xs:element>
</xs:schema>